package cn.da.shuai.cool.common.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "排序字段")
public class OrderBy {

    @Schema(title = "字段名")
    private String name;

    @Schema(title = "是否升序")
    @Builder.Default
    private Boolean asc = true;

}
